package com.xieyingwangluo.yxpart.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Api(tags = "不能使用,编写中.....demo接口")
@Controller
@RequestMapping(value = "/api/v1/demo")
public class DemoBaseRest extends BaseRest {

    @ApiOperation(value = "获取数据测试接口", notes = "Get Rest接口的Demo方法", produces = "application/json")
    @ApiImplicitParam(name = "id", value = "demo_Id", required = true, dataType = "String", paramType = "query", defaultValue = "1234555SHA")
    @ResponseBody
    @GetMapping(value = "/selO")
    public void selO_demo(@RequestHeader(name = "token", defaultValue = "token") String token,
                            @RequestParam("id") String id) {
        logger.info("获取demo信息 start....");
    }
}
